/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ooad.gof.factory.simpleFactory;

import ooad.gof.factory.Driver;
import ooad.gof.factory.Product;
public class Client {
    public static void main(String args[]){
        Driver driver = new Driver();
        Product product = SimpleFactory.getInstance("plane");
        driver.setProduct(product);
        driver.drive();
    }
    
}
